/*
 * @Descripttion: 0
 * @version: 1.0
 * @Author: 郝汉森
 * @Date: 2020-08-24 18:59:01
 * @LastEditors: 郝汉森
 * @LastEditTime: 2020-08-27 19:30:23
 */
import {postUrl,getUrl,deleteUrl,putUrl} from '../utils/https'
// 获取所有的试题类型
export const getQuestionsType = () => {
    return getUrl('/exam/getQuestionsType')
}
// 添加试题类型
export const addQuestionsType = (data)=>{
    return getUrl('/exam/insertQuestionsType',data)
}
// 获取所有的课程
export const getSubject=()=>{
    return getUrl('/exam/subject')
}
// 获取所有的考试类型
export const getExamType=()=>{
    return getUrl('/exam/examType')
}
// 添加试题接口
export const addQuestions=(data)=>{
    return postUrl('/exam/questions',data)
}
// 按条件获取试题
export const getQuestions=(data)=>{
    return getUrl('/exam/questions/condition',data)
}
// 更新试题
export const editQuestions=(data)=>{
    return putUrl('/exam/questions/update',data)
}